#!/usr/bin/env python2.3

from activist.Event import Event
from activist.Person import Person
import activist.Time
from activist.DataStore import DataStore

DataStore.createGenericData()

person = Person("mike","(403) 222-1234","email@example.com","#31 Somewhere Street\nCalgary, Alberta, Canada")
ev = Event(person,"Some Event",activist.Time.now(),"event description",None)

print "info:",ev.info()

def success(result):
    print "success",result
ev.approve(person).addCallback(success)
ev.unapprove(person).addCallback(success)
ev.highlight().addCallback(success)


